package org.csu.jpetstore_front.service;

import org.csu.jpetstore_front.common.CommonResponse;
import org.csu.jpetstore_front.entity.*;
import org.csu.jpetstore_front.vo.*;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface OrderService {
    CommonResponse<Integer> insertOrder(Order order,List<OrderVO> orderVOList);

    CommonResponse<List<OrderVO>> getOrder(int orderId);

    CommonResponse<List<OrderVO>> getOrderByUsername(String username);

    int getNextId(String name);

    CommonResponse<List<CartVO>> getCartShopItems(Account account);

    CommonResponse<OrderVO> insertIntoCartShop(OrderVO orderVO);

    CommonResponse<OrderVO> deleteItemFromCartShop(OrderVO orderVO);

    CommonResponse<OrderVO> updateItemQuantity(OrderVO orderVO);

    CommonResponse<AccountVO> deleteAll(AccountVO accountVO);

    CommonResponse<List<CCartVO>> deletecartshop(List<CCartVO> orderList);
}
